package com.piaohailin.feature.generic;

public class Swap {

    public Swap(int i,int j){
        int temp;
        temp = i;
        i = j;
        j = temp;

        System.out.println("i = " + i +" j= "+j);
    }

    public static void main(String[] args) {
        int i = 1;
        int j = 2;
        Swap swap = new Swap(i,j);
        System.out.println("i = " + i +" j= "+j);
    }
}
